From e5e855da82c9b7fb7d60e1fbf60350346556d13c Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 18 Mar 2005 19:33:47 +0000 Subject: [PATCH] Fix "past the beginning of string" test. --- gpsbabel/mkshort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/mkshort.c b/gpsbabel/mkshort.c index 1efcb7812..8edef7683 100644 --- a/gpsbabel/mkshort.c +++ b/gpsbabel/mkshort.c @@ -387,7 +387,7 @@ mkshort(void *h, const char *istring) * Walk in the Woods 2. */ np = ostring + strlen(ostring); - while (*np && isdigit(*(np-1) )) { + while (*(np-1) && isdigit(*(np-1) )) { np--; } if (np) { -- 2.30.2